import React from "react";  

import ReactDOM , {render} from  "react-dom"  

import {HashRouter as Router }  from "react-router-dom";

import IndexContainer  from "./containers"     //路由 根 组件 

// 渲染 路由 根 组件  

import {Provider} from "react-redux"
import store from "./store"

const hotRender = (Component)=>{
    render(
        <Provider store={store}>
            <Router pathname="/">
                <Component/>
            </Router>
        </Provider>,
        document.getElementById("app")
    )
}

hotRender(IndexContainer)